/**
 * 
 */
package com.agilegroup.crm.requests;

import com.agilegroup.crm.model.CallDetailsList;
import static com.agilegroup.crm.utils.CONSTANTS.*;
import com.octo.android.robospice.request.springandroid.SpringAndroidSpiceRequest;

/**
 * @author hisham
 *
 */
public class NewCallDetailsJsonRequest extends SpringAndroidSpiceRequest<CallDetailsList>{

	private String empId;
	
	public NewCallDetailsJsonRequest(String empId) {
		super(CallDetailsList.class);
		this.empId=empId;
	}
	
	@Override
	public CallDetailsList loadDataFromNetwork() throws Exception {
		return getRestTemplate().getForObject(ADD_CALL_GET+empId+".json", CallDetailsList.class);
	}
}
